// ============================================================================
//
// Graph framework by Aurelien Moreau aurelien.moreau@gmail.com
// Modified by Pierre CHATEL chatelp@gmail.com
// Distributed under LGPL
// Copyright (C) Aurelien Moreau, 2008, 2009. All rights reserved
//
// ============================================================================

package com.thalesgroup.graphFramework.measure.impl;

import com.thalesgroup.graphFramework.measure.MeasureOnMetric;
import com.thalesgroup.graphFramework.collections.Pair;

public abstract class MeasureOnMetricHelper<T> implements MeasureOnMetric<T> {

	public abstract double dist(T e1, T e2);

	public double eval(final Pair<T, T> p) {
		return dist(p.getFirst(), p.getSecond());
	}

}
